package com.chihihx.launcher

import android.annotation.SuppressLint
import android.app.Application
import com.nova.android.tvlauncher.BuildConfig
import io.github.lib_autorun.AppManager
import com.shudong.lib_base.ext.MvvmHelper
import com_github_lib_base.APPSTORE_APPDETAIL_NAME
import com_github_lib_base.APPSTORE_APP_ID

class APP: Application() {
    @SuppressLint("NewApi")
    override fun onCreate() {
        super.onCreate()
        MvvmHelper.init(this)

        APPSTORE_APP_ID = BuildConfig.APPSTORE_APP_ID
        APPSTORE_APPDETAIL_NAME = BuildConfig.APPSTORE_APPDETAIL_NAME
        AppManager.init {
            context = this@APP
            baseUrl = BuildConfig.BASE_URL
            backupDomain = BuildConfig.BACKUP_DOMAIN
            randomDomainMD5 = BuildConfig.MD5_VALUE
            appId = BuildConfig.APP_ID
            channel = BuildConfig.CHANNEL
            ctype = BuildConfig.CTYPE
            model = BuildConfig.MODEL
            isEncrypted = false
            isDebugMode = true
            isPrintEncryptedInfo = false
        }
    }
}